# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=paranoic
pkgver=1.7
pkgrel=9
groups=('blackarch' 'blackarch-scanner' 'blackarch-scanner' 'blackarch-webapp')
pkgdesc='A simple vulnerability scanner written in Perl.'
arch=('any')
url='http://packetstormsecurity.com/files/128065/Paranoic-Scan-1.7.html'
license=('PerlArtistic')
depends=('perl' 'perl-color-output' 'perl-image-exiftool' 'perl-dbi'
         'perl-dbd-mysql' 'perl-libwww' 'perl-html-form')
makedepends=('dos2unix')
source=("https://dl.packetstormsecurity.net/UNIX/scanners/paranoic${pkgver//./}.zip")
sha512sums=('6c1f48bf346baab4e5aab43d3db83f3fc47992c21e9d73799a4492715330a4fb3e7d3002895babbeb4c1b59cd03ba261f1079c8f1054fde32ec948abcde79a9c')

prepare() {
  dos2unix "$pkgname.pl"

  sed -i 's|!usr/bin/perl|!/usr/bin/perl|' "$pkgname.pl"
}

package() {
  install -Dm 755 "$pkgname.pl" "$pkgdir/usr/bin/$pkgname"
}

